﻿@using System.Collections.Generic
@using Zhj.Community.Domain.Test.Dto

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
    <table style="width: 500px;margin-left:200px">
        <tr>
            <th>姓名</th>
            <th>年龄</th>
        </tr>
        @{
            foreach (StudentList item in (List<StudentList>)ViewData["list"])
            {
                <tr>
                    <td> <a href="Edit?id=@item.Id">@item.Name</a></td>
                    <td>@item.Age</td>
                </tr>
            }
        }
    </table>
</body>
</html>
